package com.webmuseum.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;

public class CloneHandler implements ClickHandler 
{
	private UIMultiContainer mRemTable;
	private Widget mCloneWidget;
	
	public CloneHandler(UIMultiContainer aRemTable, Widget aWidget)
	{
		mRemTable = aRemTable;
		mCloneWidget = aWidget;	
	}

	@Override
	public void onClick(ClickEvent event) 
	{
		mRemTable.addRemovableWidget(CloneManager.getInstance().cloneWidget(mCloneWidget));	
		//remButton.addClickHandler(new DecloneHandler(mClonePanel));
	}
	

}
